import request from '@/request'


// 查询购物车列表
export const apiCartList = () => request.get('/v1/cart/cartProductList')

// 添加购物车
export const apiAddCart = (data) => request.post('/v1/cart/saveCart', data)


// 删除购物车商品
export const apiDelCart = (data) => request.post('/v1/cart/deleteCartProduct', data)

// 购物车去付款
export const apiCartToBuy = (data) => request.post('/v1/cart/cartToBuy', data)

// 操作购物车数量
export const apiCartNumChange = (data) => request.post('/v1/cart/operateCartProduct', data)


// 返回所选择的购物车信息
export const apiCheckCartData = (data) => request.post('/v1/cart/cartProductInfo', data)

// 查询购物车商品数量
export const apiCartNum = () => request.get('/v1/cart/getCartCount')

// 查询我的订单数量
export const findMyOrderCount = () => request.get('/v1/order/findMyOrderCount')

